What was the purpose of the Gulf of Tonkin Resolution?

to end the conflict between France and Vietnam
to end the conflict between North Vietnam and the US
to give power to the US president to intervene in Vietnam
to restore the former emperor as president of South Vietnam