Yes, and Catholic politicians in New York, New Jersey, and Connecticut all voted for, and signed into law, similar anti-discrimination laws years ago with barely a peep from the church.
So-called “Catholic” politicians are different from the Catholic Church. What you have here is official Mormon Church policy.