The US president says he will walk out of future briefings if reporters do not follow his rules.