Ensuring a Just Transition through Investment