Welsh government plans for an extra £600m in NHS spending passes with Lib Dem help.