You can transfer content on iPhone that was purchased using iTunes on one computer to an iTunes library on another authorized computer. The computer must be authorized to play content from your iTunes account. To authorize the computer, open iTunes on the computer and choose Store > Authorize Computer.

Transfer purchased content:
Connect iPhone to the other computer. iTunes asks if you want to transfer purchased content.