US stocks head for another record and Japan’s market rallies after trade deal