American employers commonly restrict reference responses to dates of employment, job title and sometimes last salary, and the practice is written into separation agreements as a negotiated clause.
The law in most states permits far more. Truth is a defence, and qualified privilege protects a good-faith negative reference. Employers restrict themselves anyway, because a statement about somebody’s work is understood to be a statement about them, and a statement about them can be litigated.