NBA's bold decision could be tested in court