Kevin Spacey has landed his first film role since allegations of sexual assault were first made against him in late 2017.