The Senate has approved Kelly Craft to be the U.S. ambassador to the United Nations, giving President Trump a Senate-confirmed envoy to the international body for the first time since December.

The Senate voted 56-34 on Wednesday to confirm Craft, who has served as U.S. ambassador to Canada since August 2017. She will fill a role that has been occupied in an acting capacity by Jonathan Cohen since Nikki Haley resigned in December.

Democrats opposed Craft over concerns about her past remarks on climate change, as well as accusations that she was absent from her post in Canada too often.

“First and foremost, she lacks the experience necessary to stand up for American values and promote our national security on the global stage,” Senate Foreign Relations Committee ranking member Sen. Bob Menendez(D-N.J.) said. “Second, during her brief diplomatic tenure in Canada, she posted so many absences that I cannot describe it as anything less than a dereliction of duty.”

Hours before Wednesday’s vote, Menendez released a report that found Craft spent more than half of her time as the U.S. ambassador to Canada outside of the country. The findings had been circulated earlier among Foreign Relations Committee staff.

During her confirmation hearing, Craft defended her time away from Ottawa as being spent largely to advance trade negotiations in the field.

Craft, the wife of a coal executive, had also come under fire for saying in a 2017 interview that “there are scientists on both sides that are accurate” about the existence of climate change, despite scientific consensus that it does.

During her confirmation hearing, Craft pledged to recuse herself from matters involving coal and said humans have “contributed” to climate change.

“Climate change needs to be addressed, as it poses real risks to our planet. Human behavior has contributed to the changing climate,” Craft said. “Let there be no doubt: I will take this matter seriously, and if confirmed, I will be an advocate for all countries to do their part in addressing climate change.

“This does not mean, in my view, that the United States should imperil American jobs — or our economy as a whole — by assuming an outsized burden on behalf of the rest of the world,” she continued. “However, it does mean that we should promote the creativity and innovation that have made the United States a leader in tackling the challenges of our environment — all while safeguarding our nation’s economic well-being.”

Republicans, meanwhile, have lined up behind Craft. Read more at The Hill