Zimbabwe court rules military takeover constitutional