Judge hits 51st HR as Yankees snap skid, top Angels 7-4