Marco Rubio secured two major concessions from Panama during a visit to the Central American country, his first foreign trip as secretary of state.