Court rules Katy Perry's Dark Horse was copied from Christian rap song