The United Arab Emirates is facing a diplomatic test as it seeks to balance its strengthening relationship with Israel while continuing humanitarian support for Gaza, including the launch of a new water pipeline to address the territory’s collapsing supply.