The state Capitol turned into a chaotic scene Thursday as both houses of legislature passed a bill to end religious exemptions