INDIANAPOLIS — Indiana lawmakers have approved changes to a new religious objections law to address charges that it could allow discrimination against lesbians and gays.

The amendment to the Religious Freedom Restoration Act approved Thursday by both chambers in the Indiana legislature prohibits service providers from using the law as a legal defense for refusing to provide services, goods, facilities or accommodations.

It also bars discrimination based on factors that include race, religion, disability, sexual orientation, gender identity or United States military service.

Supporters say the changes make it clear that the law cannot be used to discriminate. Some opponents say the bill doesn’t go far enough, while others warn it could undermine religious liberties.

The bill now goes to Republican Gov. Mike Pence. He has not indicated whether he will sign it.