Hurricane Patricia weakened to a Category 4 storm but remained “extremely dangerous” over southwestern Mexico, the National Hurricane Center said.