American Campus Communities, the largest developer and owner of student housing in the nation, has agreed to purchase a block-long property where it plans to build two towers across the street from the University of Washington from a Methodist congregation that has roots more than a century old.