House leaders agree to vote on amendment restricting surveillance of internet browsing