West Ham claimed their first Women's Super League win of the season with a 2-1 home victory over London City Lionesses.