The United States and Mexico have agreed to share costs to repair dozens of sinkholes at an international dam in South Texas.