For the first time in more than six years, both chambers of Congress passed a bill that approves funding for NASA and gives the space agency new mandates.

The NASA Transition Authorization Act of 2017 is a bill that the Senate and House collaborated on for months, and it appropriates $19.5 billion to the agency. (NASA received $19.3 billion in 2016, or 0.5% of the total federal budget.)

When the Senate brought the bill before the House of Representatives for a vote on March 7, "no members spoke against the bill" and it passed, according to Jeff Foust at Space News.

The document asks NASA to create a roadmap for getting humans "near or on the surface of Mars in the 2030s." It also calls on the space agency to continue developing the Space Launch System (SLS) — a behemoth rocket — and the Orion space capsule in order to eventually go to the moon, Mars, and beyond.

An illustration of the Space Launch System taking off from Cape Canaveral, Florida. NASA's Marshall Spaceflight Center Now it's up to President Trump to sign the bill into law — or veto it.

Business Insider did not immediately receive a response from Trump administration officials about the president's plans for the new bill.

But its passage seems likely.

Trump has expressed support for a crewed exploration of Mars, and in his inauguration speech he said he's "ready to unlock the mysteries of space." Administration officials, meanwhile, have said they want NASA to return to the moon in the 2020s but also proposed to end the space agency's 58-year mandate to study the Earth and its climate, details the bill leaves out.

Trump also maintains a relatively tight collaboration with the Republican-controlled legislative branch.

What's in NASA's proposed budget?

NASA

The American Astronomical Society has a convenient breakdown of the $19.5 billion in the bill, including funding for human space exploration, space-station operations, science, and more.

Here are some notable titles, articles, and sections of the 146-page document: