House and Senate appropriators have released the text of a spending bill that largely rejects the steep cuts the Trump administration proposed for NASA.