The Secretary of State and any other Government Department . . . shall give to the court such assistance as the court may require for the purposes of their duties, under this Act, and shall be entitled to appear and be heard at any proceedings on an application before the court under this Act.