The two states agreed to a landswap to ensure that a Dallas-area water district’s pump station lies wholly within Texas.