A homeland security official called the legislation “despicable,” saying the ban would only put officers in danger.