Pubs have won a battle against a council in a leafy London suburb after it tried to block customers from drinking outside.