Court of Protection takes government to task over legal representation