SAN FRANCISCO — The chairman of the Senate Intelligence Committee is writing a bill that would penalize companies for failing to decrypt technology following court orders, according to multiple reports. The proposed legislation is in reaction to Apple, which publicly opposed such an order earlier this week.