The ruling effectively converts a preliminary injunction she issued a year ago, in which she temporarily blocked many of Trump's efforts to overhaul elections, into a permanent ban.
During a hastily called evening telephone hearing, US District Judge Karin Immergut granted the temporary restraining order sought by California and Oregon.
U.S. District Judge Richard Leon ruled that Trump violated federal law by appointing Pete Marocco to lead the U.S. African Development Foundation without congressional confirmation.