A new bill would impose sweeping restrictions and penalties for ties with foreign institutions and contacts with foreign-based media.