Religious freedom and LGBTQ rights in 2017

The idea of religious freedom is being used to introduce legislation nationwide that is seen as anti-gay rights. How does that work?