Judge rules school did not discriminate