SACRAMENTO, Calif. (AP) — California will limit publicly funded travel to states that have laws restricting the rights of gay and transgender people under legislation signed by Gov. Jerry Brown.

The Democratic governor said Tuesday he’s approving AB1887.

The bill by Democratic Assemblyman Evan Low of Campbell bars non-essential travel to states with laws that sanction or require discrimination on the basis of sexual orientation, gender identity or gender expression.

It also blocks California state agencies from requiring their employees to travel to those states. The bill applies to state agencies and the University of California and California State University systems.

The attorney general will come up with a list of states to which travel is restricted.