Colonial protests resulted in the repeal of the Stamp Act in 1765 , but in the 1766 Declaratory Act , Parliament continued to insist that it had the right to legislate for the colonies " in all cases whatsoever " .