The 15-year-old boy, who the school punished over 250 times, and his parents have received an apology after a tribunal hearing found that he had been discriminated against.