A judge ruled that the man who brought the claims did not technically own a beat sampled in the 2023 hit.