A Brooklyn man was given two consecutive sentences of 22 years to life for murdering his wife and his ex-wife.