The Supreme Court ruled Thursday that a California inmate had to first file a grievance before bringing a suit claiming he was punished for alleged inappropriate activity with volunteer priests.

Justices decided on a 6-3 vote that because Viet Mike Ngo missed a state prison system deadline for grievances, he could not bring the federal court lawsuit.