Lawmakers in the House of Representatives passed two bills that would establish paths to citizenship or legal status for millions of undocumented immigrants in the United States.