The legislation underscores qualms that lawmakers in both parties have expressed about a push to set up facilities in their states and districts.