Katy Perry wins $3 million copyright battle