Where is it written that an elected official gives up his/her right to religious freedom when they are elected?
You don't have the "freedom" to be insulting to others when you are a legislator. You represent all your constituents, not just those with whose religious tenets you agree.