Not in New Mexico.
IIRC, New Mexico law requires no discrimination if the business has more than X employees...not sure of the number. This photographer was probably sought out to be made an example of - there were many other photographers available.
NM isn’t the only place with laws like that. It can apply to renting out a basement apartment (not common in NM, but some places have a lot of basements converted to provide students apartments).
In many states, you cannot refuse to work for someone if they agree to pay you. About your only recourse is to do crummy work. If I had been the NM photographer, they’d have had marriage photos from hell!
That’s what I’m learning. Fortunately I shoot sports where we don’t have these kinds of issues.