Sony has struck a deal to take control of EMI Music Publishing, which owns the rights to songs by artists like Kanye West and Alicia Keys.