The rapper scored a legal victory, though he still faces a separate drug trafficking case in Florida.