A federal judge has ruled that President Trump does in fact have constitutional authority