A man who committed a second murder after charges were dropped in another killing has now been jailed for life for both murders.