Two-time Oscar nominee Jude Law has criticised fossil fuel companies, saying they “need to answer” for their environmental actions.