The federal government has secured opposition support to pass one of the most substantial budget packages since the coalition took office in 2013, making trade-offs on renewable energy funding and welfare payments to pick up about $6 billion in savings.