WASHINGTON — Meeting for the first time as a group to hash out their approach to immigration, House Republicans on Wednesday came down overwhelmingly against a comprehensive overhaul of the nation’s immigration laws, putting in jeopardy the future of sweeping legislation that includes a path to citizenship for undocumented immigrants.

Despite the resistance, Speaker John A. Boehner warned about the steep price of inaction, telling House Republicans that they would be in a weaker political position against a bipartisan Senate coalition and President Obama if they did nothing to answer the immigration measure passed by the Senate last month.

House Republicans huddled in a crucial two-and-a-half-hour session in the basement of the Capitol as their leaders tried to devise some response to the demand for immigration legislation, especially the Senate provision that would grant a path to citizenship for the 11 million undocumented immigrants already in the country. The bill also mandates tough border security provisions that must be in place before the immigrants can gain legal status.