Effect of provincial spending on social services and health care on health outcomes in Canada: an observational longitudinal study