The supreme court ruled that was legal because they said so