NASA is close to deciding whether to spend an extra $150 million to send the InSight lander to Mars in 2018 or cancel the mission after an instrument problem made the spacecraft miss a launch opportunity this year, with a verdict on the project’s future expected within weeks, officials said.