If they're private institutions it's their right, but it's braindead loving stupid and, in the case of gay parents at least, there can definitely be lawsuits for discrimination. Someone's loveual orientation doesn't determine their ability to raise a child. Their religion, debatable, but we have religious freedom laws for better or worse.
Honestly though, why is anyone surprised, it's loving Texas for forget's sake.