Protesters who opposed the act showed their dismay after the ruling as announced.