Court rules in favor of hip-hop star Macklemore after jazz musician sued over hit song samples