In his latest rebuke of the Trump administration, Gov. Gavin Newsom signed a bill Friday that bans private prisons and immigrant detention facilities from operating in California.

Assembly Bill 32 will prevent the state from entering into or renewing contracts with for-profit prison companies after Jan. 1, 2020, and phase out such facilities by 2028. The bill earned final approval from the Assembly on Sept. 11 by a vote of 65 to 11, a day after it cleared the Senate.