Pope, after blunt talk to Congress, thanks nuns in New York

(AP) -- Pope Francis plunged into the melting pot of New York on Thursday after reminding the country of its immigrant origins in the first papal speech before Congress. At an evening prayer service in St. Patrick's Cathedral, Francis thanked American nuns for their strength and courage in a deeply meaningful acknowledgement of their service following a years-long Vatican crackdown.

Over 40 hours in New York, Francis will address world leaders at the United Nations, participate in an interfaith service at the Sept. 11 memorial and celebrate Mass at Madison Square Garden. He will visit a school in Harlem and take drive through Central Park -- a whirlwind tour of the Big Apple that got off to a quintessential welcome with a high school brass band serenading him with "New York, New York," on the airport tarmac.

The popular pontiff received raucous cheers upon his arrival in Manhattan. Thousands of people lined the streets leading to St. Patrick's to greet him, cheering, waving flags and adoringly chanting his name as he gestured toward them from his popemobile. On the steps of the recently spruced up cathedral, dignitaries including Gov. Andrew Cuomo, Mayor Bill de Blasio and U.S. Sen. Charles Schumer welcomed him for an evening vespers service.

Once inside, the pews full of U.S. priests and sisters erupted in applause when Francis told American nuns that he wanted to thank them for their strength, spirit and courage and to "tell you that I love you very much."

It was the strongest expression yet of his gratitude for American nuns after the Vatican under his predecessor ordered an overhaul of the largest umbrella group of U.S. sisters, accusing them of straying from church teaching. The nuns denied the charge and received an outpouring of support from American Catholics, and the crackdown ended this year, two years early, with no major changes.

In Washington earlier Thursday, the pope waded into bitter disputes while speaking to Congress, entreating the nation to share its immense wealth with those less fortunate. He urged Congress and the nation to abolish the death penalty, fight global warming and embrace immigrants. Lawmakers gave rousing ovations to the leader of the world's Catholics despite obvious disagreements over some of his pleas.

After he addressed Congress, the first pontiff to do so, he underscored his message by traveling to a downtown Washington church, where he mingled with needy and homeless people, blessed their noontime meal and walked among them while they ate.

Francis wraps up his visit this weekend in Philadelphia, where he speaks in front of Independence Hall and celebrates Mass on the Benjamin Franklin Parkway to close out a big Catholic family rally.

At the Capitol, the remarkable sight of the pope speaking in the House chamber seemed to delight lawmakers of all persuasions, though he offered an agenda more to Democrats' liking. Besides his focus on climate change and immigration, he denounced arms sales and seemed to allude approvingly to the Iran nuclear deal and recent actions by President Barack Obama's administration to open relations with Cuba, done with his urging.

Republicans, too, heard something to like in his references to the sanctity of life and family relations, reminders that even the more open Catholic Church over which Francis presides still condemns abortion and gay marriage.

For all the spectacle, it seemed unlikely the pope's visit would break congressional inertia on the issues dear to him, with no action in sight from the Republican majority on global warming or immigration.

But Francis, in his historic speech, seemed determined to remind the United States of its foundations as a country made up of foreigners, addressing the chamber and the American people beyond in personal terms as a son of immigrants to "this great continent."

"We must resolve now to live as nobly and as justly as possible as we educate new generations not to turn their back on our neighbors and everything around us," he said. "We must not be taken aback by their numbers but rather view them as persons, seeing their faces and listening to their stories, trying to respond as best we can to their situation."

After the address, Francis appeared high on a Capitol balcony and addressed a cheering crowd of thousands below on the lawn and the Mall beyond who had watched his speech on giant TV screens.

"Buenos dias," he called out in the language of his native Argentina and millions of U.S. immigrants, legal and not.

"God bless America!" he concluded, as he had in the House chamber.

After leaving the Capitol, the pope brought encouragement to a much smaller group: a gathering of homeless and needy people at St. Patrick's Church and Catholic Charities in Washington. He decried a lack of housing for the poor and declared there is "no justification whatsoever" for homelessness.

The pope's jam-packed tour began last weekend in Cuba and included a White House ceremony and Washington parade in his popemobile on Wednesday. On Friday, at the United Nations, the pope is sure to make many of the points emphasized in Washington -- a need for openness to immigrants and for the world to share its riches with the needy.

At the Capitol in Washington, the packed House chamber included Supreme Court justices, Cabinet officials and lawmakers of both major political parties, some of whom bowed their heads in deference as Francis walked down the center aisle to approach the dais where presidents deliver their State of the Union speeches.

"Mr. Speaker, the pope of the Holy See," bellowed the sergeant at arms.

Behind the pope sat Democratic Vice President Joe Biden and Republican House Speaker John Boehner, the first and second in line to the presidency, both Catholics.

Francis, in deliberate and accented English, noted that many lawmakers descended from immigrants and the U.S. was founded by foreigners "who came to this land to pursue their dream of building a future in freedom."

"Let us treat others with the same passion and compassion with which we want to be treated," he said. "Let us seek for others the same possibilities which we seek for ourselves."

His appeal comes amid the worst refugee crisis since World War II: Europe has been overwhelmed by hundreds of thousands of people fleeing war in Syria and Iraq, and there are widespread conflicts and poverty in Africa. In the U.S., tens of thousands of families and unaccompanied minors from Central America have surged across the southern U.S. border as violence has flared at home.

For now, Congress has deadlocked on immigration legislation, and the chances for progress have only grown more remote amid the hardline rhetoric of the U.S. presidential campaign. Republican front-runner Donald Trump, who watched the pope's New York motorcade from the Trump Tower balcony, has painted Mexican immigrants as criminals and has said he would build a wall along the border and force Mexico to pay for it.

Francis has called for a more welcoming attitude toward migrants across the board and has backed that up with a modest welcome of his own: The Vatican recently took in two refugee families and has committed to care for them while they await their asylum applications.

On another contentious subject, he advocated abolition of the death penalty in the U.S., something that enjoys support from a number of lawmakers of both parties at the federal level. He spoke out against fundamentalism of all kinds while urging care in combating it.

In calling for action on the climate and to combat poverty, he took care to insist he was not anti-business, as some conservatives have suggested. He quoted a Catholic teaching document that calls business "a noble vocation, directed to producing wealth and improving the world."

At the Capitol, his mention of climate change drew standing cheers from Democrats while Republicans stood to applaud the reference to opposing abortion. Republicans in particular also loudly applauded as Francis asserted the importance of family life and bemoaned that "fundamental relationships are being called into question as is the very basis of marriage and the family." The Catholic Church opposes gay marriage, recently legalized by the Supreme Court.