Court: Catholic school has right to hire staff who uphold church doctrine