Is an American University Professor allowed to share grades with the class?
This is a clear violation of FERPA. Bring this up to your department head or a dean of your college.

To prevent this from happening, any identifying information should have been removed. Your name (and if were there, a student ID number) should have been redacted.

As this has already happened, I would promptly report it to the appropriate campus administration.