Hamas chief congratulates Taliban on end of US ‘occupation’