A judge in San Antonio has ordered two educators to apologize to an agnostic family in a lingering school prayer dispute.

Chief U.S. District Judge Fred Biery on Monday ordered Medina Valley Independent School District Superintendent James Stansberry and band director Keith Riley to apologize. The judge declined to hold them in contempt.

The San Antonio Express-News reports the men allegedly made public comments critical of the family of ex-student Corwyn Schultz after a February settlement. The family had sued but failed to stop prayers at last June's graduation ceremony.

The district agreed school employees would not pray with students or elicit prayer in class, plus not disparage the Schultz family.

The district declined comment about Monday's order, which requires the Schultz family to accept the apologies.