The Justice Department confirmed Wednesday evening that it had reined in the NSA 's wiretapping activities in the United States after finding out the agency had improperly accessed American phone calls and e-mails .