It's essentially thought crime. Seriously. Is it harmful to not hire someone? If it is, then shouldn't everyone who inflicts that harm on someone else be held accountable?
Of course not, because it's not harm. Refusing to do what someone else wants you to do isn't harming them. Period. And whether or not it's illegal shouldn't be determined by the opinions of the person refusing.
In reality, these laws are part of the bigger push to get rid of individual rights and replace them with collective privilege, assigned, always, by the government.