The Welsh Parliament has approved its budget for the next year, following a fierce debate which saw ministers accuse opponents of “being against everything”.