BERLIN — European lawmakers on Thursday agreed on new protections for Internet users, striking a compromise between national governments seeking to impose tough anti-piracy laws and consumer organizations that wanted to enshrine Internet access as an unassailable right.