The top U.S. military officer said helping counter China’s rapidly expanding fleet is a responsibility expected of a key ally.