The Government's bid to exclude British soldiers from human rights laws while on the battlefield has failed.