The Supreme Court ruled that former presidents are immune from federal prosecution for official acts taken while in office.