Nancy Pelosi has barred President Trump from delivering his speech from House chamber until government is reopened.