A man who killed his ex-partner and her three-year-old daughter and buried their bodies under a bridge has been jailed for at least 21 years.