A slim majority of Puerto Ricans sought to change their ties with the United States and become the 51st U.S. state in a nonbinding referendum that would require final approval from Congress.