Government and Court solve constitutional crisis