Pakistani court invalidates colonial-era sedition law