Three top U.S. banks have told lawmakers they would comply with government regulations to exit the Chinese market if Beijing were to attack Taiwan.