The House of Representatives voted on Thursday to extend the National Security Agency’s warrantless surveillance program for six years with minimal changes, rejecting a yearslong effort by a bipartisan group of lawmakers to impose significant new privacy limits when it sweeps up Americans’ emails and other personal communications.