The head of Hungary’s oldest scientific institute said it was considering taking legal action to challenge government moves to take more control over research work and budgets.