Lawmakers, who had cast aside a conservative push to allow religious objectors to refuse service to same-sex couples, waved rainbow flags and embraced on the floor of the chamber, after the overwhelming vote in favour of the bill.