Kent is preparing to launch legal proceedings against the government over the way it has handled the biggest shake-up of local councils in 50 years.