Prime Minister Boris Johnson is set to go on the attack after two crushing defeats in parliament and the shock resignation of his brother.