Federal officials said they would “not abide” by the new law, which is likely to lead to a showdown in court.