The executive order is designed to counter efforts by Republican politicians like Gov. Ron DeSantis of Florida, who pushed through what opponents have called the “Don’t Say Gay” law.