State law restricts the grant to certain students of color, which a conservative law firm argued was racial discrimination.