The House passed a short-term extension of a controversial surveillance program that could infringe on Americans' rights.