Canada will raise capital gains taxes on businesses and wealthy individuals to help pay for tens of billions in new spending aimed at making housing more affordable and improving the lives of young people.