A suspected gunman who killed six people in a shooting rampage in Santa Barbara, apparently killed himself, the sheriff said in a press conference.
More top news
The ruling means Mr Trump cannot enforce his ban, which blocks new visas for people from six predominantly Muslim countries.
Thursday could be the warmest day of 2017 so far, with temperatures of 22C (72F) forecast, double the average for March.
Former cricketer Andrew Flintoff and Tony Blair's ex-spin doctor Alastair Campbell talk about mental health battles in a series of films.