The judge ruled that the ban was in violation of the equal protection clause due to discrimination.