And he pledged to work with U.S. leaders in both political parties to find consensus on the best path forward .