A’s score big, hold off Royals’ comeback bid