Supreme Court rules Catholic school teachers are ministers