The government's resignation was required by the constitution after the election of a new house speaker on Wednesday.