Bonta said the Trump administration’s mass layoffs violated federal law and would cause economic hardship for California.