Labor's contentious tax reforms will be enshrined into law after reaching a deal with the Greens in exchange for a longer inquiry into NDIS cuts.