They're not saying the kid broke the law. The teachers who had sex with him broke the law, but since the student says it was consensual, they weren't breaking the law after he turned 17, only before. But yeah, lucky kid!