They could not bring suit in federal court.
This unjust and immoral ruling was overturned by the 13th and 14th Amendments--which abolished slavery and extended the rights of full citizenship to all, regardless of race.