James Wiseman, a top basketball prospect expected to star for the University of Memphis this season, filed a lawsuit against the N.C.A.A. and the university on Friday after the sport’s governing body declared him ineligible to play. A judge quickly issued a temporary restraining order that cleared Wiseman to play for Memphis on Friday night.

The Memphis athletic department said in a statement that the family of Wiseman had accepted $11,500 in moving expenses from Penny Hardaway, a former Memphis and N.B.A. star who is now the university’s coach. The family moved to Memphis from Nashville in 2017, when Wiseman was a high school player. The university said Wiseman did not know about the payment, which would be prohibited by N.C.A.A. rules.

The payment came when Hardaway was coaching at Memphis East High School, where Wiseman finished his high school career. Hardaway became the University of Memphis coach in 2018.

The judge’s order, announced by the university, came hours before Memphis was scheduled to play the University of Illinois-Chicago on Friday night . Wiseman started at center and had 17 points, 9 rebounds and 5 blocked shots in a 92-46 Memphis victory.