The decision has been widely criticized as a violation of the employees’ First Amendment rights.