The Angels sent Cozart, his salary, and a prospect to San Francisco