The court ruled that the president's executive order targeting citizens from six mainly Muslim countries could go into partial effect.