At least one such person was naturalized, according to Wikipedia, in 1868, a time at which I believe naturalization was conferred by district court judges. Although this doesn't perhaps constitute a court case, as asked by the question, it does show that formerly enslaved people who has been born outside the United States were not automatically granted US citizenship. Wikipedia says:
Although native-born American former slaves became citizens upon the passage of the Fourteenth Amendment to the United States Constitution in July 1868, this change in status did not apply to the members of the Clotilda group, who were foreign-born. Cudjo Kazoola Lewis became a naturalized American citizen on October 24, 1868.
The passage cites Dreams of Africa in Alabama: The Slave Ship Clotilda and the Story of the Last Africans Brought to America by Sylviane A. Diouf