Supporters of the ban decried the Trump administration's lawsuit as a “dangerous threat to public safety.”