Voters overwhelmingly endorsed a new constitution in a June referendum , clearing the way for the October elections .