This sounds like it could be a Hatch Act violation.
“the president’s 2021 directive orders every federal agency, more than 600 in all, to register and mobilize voters – particularly “people of color” and others the White House says face “challenges to exercise their fundamental right to vote.” It further orders the agencies to collaborate with ostensibly nonpartisan nonprofits.”
Yeah, about that Hatch Act ….