Officials of the current Honduran government say the arrest was legal , noting that Zelaya had defied the Supreme Court in calling a referendum that could have led to overturning the constitution 's ban on a second presidential term .