Welsh government and Lib Dem leader announce deal on budget, with money for childcare and councils planned.