Boris Johnson's decision to suspend Parliament was unlawful, the Supreme Court has ruled.