US secretaries of state and defense met with their Japanese counterparts in first foreign trip since taking office.