A California federal judge ordered the Trump administration Wednesday to explain why preparations for layoffs at the State Department and Department of Housing and Urban Development do not violate an injunction she issued last month, saying she needed more details about the agencies’ plans to evaluate their compliance.