A bill to legalize online poker that is being written in Congress and that Nevada senators are trying to pass by the end of the year could be challenged in court and found unconstitutional, according to a legal analysis by a former top government attorney.