A federal judge dismissed a man's lawsuit against a Massachusetts school district and its administrators for barring him from playing in an adult volleyball league held at a school building after he refused to wear a mask during the COVID-19 pandemic.