The Trump administration argued in federal court that any judicial intervention to curtail its deployment of military troops to Los Angeles would endanger federal immigration agents and undermine the president’s authority to keep American cities safe.