Donald Trump hit out a federal workers working from home for “golfing”, despite spending nearly a third of his presidency playing golf.