Rhythm-and-blues artists such as the Temptations and Sam Cooke served as the inspiration for filmmaker Robert Townsend’s ambitious movie about five urban friends who climb the stairway to stardom.