Hungarian President Tamás Sulyok has resigned after signing a constitutional amendment that ends his term. The change was approved by parliament and also removes the head of the Constitutional Court.