BEIJING — China sentenced the prominent Uighur intellectual Ilham Tohti to life imprisonment for advocating separatism and inciting ethnic hatred, criticizing the government and voicing support for terrorism on Tuesday, in a surprisingly harsh verdict that critics said made a mockery of the country’s legal system and underlined the government’s brutal repression of dissent.