Teacher tenure bill ruled unconstitutional