US warned Japan about foreign policy