"We're just very relieved the judge saw it our way," Bad Bunny's lawyer Kenneth D. Freundlich told Rolling Stone as he left the hearing Friday