Such cities may pass all ordinances necessary for the carrying into effect of the powers granted in section 71.680.