The Hatch Act prevents government officials in government agencies from being involved in political activities, such as endorsing a candidate while working for the Housing and Urban Development Agency as in the case of department secretary Julian Castro :
President Barack Obama will not discipline Housing and Urban Development Secretary Julián Castro for violating the Hatch Act, which prohibits federal employees from engaging in political activity while in their administrative role.
The Hill reported  Tuesday that Castro will not face any repercussions for his April interview with Yahoo News’ Katie Couric. During the interview, Castro said he was supporting Hillary Clinton while discussing HUD programs. He has since apologized for violating the Hatch Act. Castro is a potential running mate for Clinton.