Judge upholds decision in lawsuit against school district