The new law is intended to safeguard same-sex marriages if the US Supreme Court ever reverses its 2015 decision legalising them nationwide.